<?php
/**
 * Copyright (C), 2021-2021, Shall Buy Life info. Co., Ltd.
 * FileName: OrderConstant.php
 * Description: 订单
 *
 * @author lwl
 * @Create Date    2021/12/1 13:43
 * @Update Date    2021/12/1 13:43 By lwl
 * @version v1.0
 */

namespace Example\Constants;

interface RefundConstant
{
    const STATUS_APPLY_ING = 10;//申请中
    const STATUS_REFUND_ING = 20;//退款中
    const STATUS_REFUND_FINISH = 30;//退款完成
    const STATUS_REFUND_CLOSE = -10;//退款关闭
    const STATUS_REFUND_REJECT = -20;//退款驳回

    /**
     * FunctionName：store
     * Description：
     * Author：lwl
     * @param string $orderSn
     * @param $refundMoney
     * @return array
     */
    public function store(string $orderSn,$refundMoney):array;


    /**
     * FunctionName：agree
     * Description：同意退款
     * Author：lwl
     * @param string $refundSn
     * @param int $refundWay
     * @return array
     */
    public function agree(string $refundSn, int $refundWay):array;

    /**
     * FunctionName：callBack
     * Description：退款回调
     * Author：lwl
     * @param array $params
     * @return mixed
     */
    public function callBack(array $params):array;



}
